package com.ark.cloud.dataservices.modules.sys.entity.po;

import com.ark.cloud.dataservices.common.web.entity.po.BasePo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("users")
public class User extends BasePo {
    private String name;
    private String mobile;
    private String phone;
    private String username;
    private String openid;
    private String password;
    private String email;
    @TableField(exist = false)
    private String customerName;
    @TableField(exist = false)
    private String serviceName;
    private String description;
    private Boolean enabled;
    private Boolean accountNonExpired;
    private Boolean credentialsNonExpired;
    private Boolean accountNonLocked;
    @TableField(exist = false)
    private Set<String> roleIds;
    @TableField(exist = false)
    private Set<String> groupIds;
    @TableField(exist = false)
    private Set<String> positionIds;
    @TableField(exist = false)
    private Set<String> seatNames;
    @TableLogic
    private String deleted = "N";
    @TableField(exist = false)
    private String roleCode;
    @TableField(exist = false)
    private String roleName;
    @TableField(exist = false)
    private String postName;
}
